package com.huawei.hms.adapter.a;

import android.content.Intent;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

public final class a {
    private static a a = new a();
    private static b b = new b() {
        private final List<c> a = new CopyOnWriteArrayList();

        public void a(c cVar) {
            if (cVar != null && !this.a.contains(cVar)) {
                this.a.add(cVar);
            }
        }

        public void b(c cVar) {
            this.a.remove(cVar);
        }

        public void a(Intent intent, String str) {
            for (c a : this.a) {
                a.a(intent, str);
            }
        }

        public void a(int i) {
            for (c a : this.a) {
                a.a(i);
            }
        }
    };

    private a() {
    }

    public static a a() {
        return a;
    }

    public static b b() {
        return b;
    }

    public void a(Intent intent, String str) {
        b.a(intent, str);
    }

    public void a(int i) {
        b.a(i);
    }
}
